package server;

/*
* 存储浏览器请求中携带的数据
* */

import java.util.Map;

public class HttpServletRequest {

    private String requestName;

    private Map<String,String> parameterMap;

    public HttpServletRequest(String requestName, Map<String, String> parameterMap) {
        this.requestName = requestName;
        this.parameterMap = parameterMap;
    }

    //获取requestName属性名的方法
    public String getRequestName(){
        return requestName;
    }

    //获取requestName属性名的方法
    public Map<String,String> getParameterMap(){
        return parameterMap;
    }

    public String getParameter(String key){
        return parameterMap.get(key);
    }
}
